package com.entidades.xml;


import java.util.ArrayList;
import java.util.List;


public class Person extends BaseObject {
	/**
     * 
     */
    private static final long serialVersionUID = 456788L;
	private String firstName;
	private String lastName;
	
	private List<Job> jobList = new ArrayList<Job>();
	
	public String getFirstName() {
		return firstName;
	}
	
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	
	// Leave the standard column name of the table
	public String getLastName() {
		return lastName;
	}
	
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	
	
	
	public List<Job> getJobList() {
		return this.jobList;
	}
	
	public void setJobList(List<Job> jobList) {
		this.jobList = jobList;
	}

	@Override
    public String toString() {
	    return "Person [id="+getId()+", firstName=" + firstName + ", lastName=" + lastName + ", jobList=" + jobList.size() + "]";
    }
	
	
	
}
